Ext.define('PackageManager.rules.Rules', {
    constructor: function() {

        Ext.create('PackageManager.rules.Rule',
            ['RPWES'],
            function() {
                return PackageManager.rules.Functions.checkFinalValue('RPWES', 'Weak')
            },
            function() {
                alert('RPWES == Weak')
            }
        );

        Ext.create('PackageManager.rules.Rule',
            ['RPWES', 'GACIE'],
            function() {
                return PackageManager.rules.Functions.checkFinalValues('RPWES', 'Very weak', 'GACIE', 'Very weak')
            },
            function() {
                PackageManager.rules.Functions.changeFinalValue('RCARD', 'Very weak');
            }
        );
    }

});

